package com.serie402.common.delegate;

import com.kiss.fw.delegate.AbstractDelegate;
import com.kiss.fw.exceptions.BusinessException;
import com.serie402.common.dto.EventDTO;

public final class EventDelegate extends AbstractDelegate {
	private EventDelegate() {
	}
	
	/**
	 * Creates the event specified.
	 * 
	 * @param EventDTO _dto
	 * @throws BusinessException
	 */
	public static void create(EventDTO _dto) throws BusinessException {
		executeCommand("CreateEvent", _dto);
	}
	
	/**
	 * Retrieves the event specified.
	 * 
	 * @param EventDTO _dto
	 * @throws BusinessException
	 */
	public static void read(EventDTO _dto) throws BusinessException {
		executeCommand("ReadEvent", _dto);
	}
	
	/**
	 * Updates the event specified.
	 * 
	 * @param EventDTO _dto
	 * @throws BusinessException
	 */
	public static void update(EventDTO _dto) throws BusinessException {
		executeCommand("UpdateEvent", _dto);
	}
	
	/**
	 * Deletes the event specified.
	 * 
	 * @param EventDTO _dto
	 * @throws BusinessException
	 */
	public static void delete(EventDTO _dto) throws BusinessException {
		executeCommand("DeleteEvent", _dto);
	}
	
	/**
	 * Searches for the specified event.
	 * 
	 * @param EventDTO _dto
	 * @throws BusinessException
	 */
	public static void search(EventDTO _dto) throws BusinessException {
		executeCommand("SearchEvents", _dto);
	}
}